import 'package:daoyi_ui_admin_getx/app/widgets/common_image_widget.dart';
import 'package:flutter/material.dart';

import 'home_navigator_item_widget.dart';

class HomeNavigatorWidget extends StatelessWidget {
  const HomeNavigatorWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.only(top: 6, bottom: 6),
      decoration: const BoxDecoration(
        color: Colors.white,
        boxShadow: [
          BoxShadow(
            color: Color.fromRGBO(0, 0, 0, 0.1),
            offset: Offset(0, 2),
            blurRadius: 4,
          ),
        ],
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: navigatorItemList
            .map(
              (item) => InkWell(
                onTap: () {},
                child: Column(
                  children: <Widget>[
                    CommonImageWidget(item.imageUrl, width: 47.5),
                    Text(
                      item.title,
                      style: const TextStyle(
                        fontWeight: FontWeight.w500,
                        fontSize: 14,
                      ),
                    ),
                  ],
                ),
              ),
            )
            .toList(),
      ),
    );
  }
}
